package com.ruoyi.project.newhope.device.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 近红外设备对象 new_hope_infrared_device
 * 
 * @author ruoyi
 * @date 2021-02-08
 */
public class NewHopeInfraredDevice implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 近红外编码 */
    @Excel(name = "近红外编码")
    private String code;

    /** 近红外描述 */
    @Excel(name = "近红外描述")
    private String desc;

    /** 检测点 */
    @Excel(name = "检测点")
    private String location;

    /** 中控链接 SQL */
    @Excel(name = "中控链接 SQL")
    private String linkSql;

    /** 中控-数据 host */
    private String centralHost;
    /** 中控-数据库名称 */
    private String centralDbName;
    /** 中控-用户名 */
    private String centralUser;
    /** 中控-密码 */
    private String centralPwd;

    /** sqlserver 数据库host */
    private String host;
    /** sqlserver 数据库名称 */
    private String dbName;
    /** 前弃数据条数 */
    private Integer headDiscard;
    /** 后弃数据条数 */
    private Integer endDiscard;
    /** 当前设备正在采集的物料 code */
    private String materialCode;
    /** 有效无效: 0-无效；1-有效 */
    private Integer valid;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public NewHopeInfraredDevice() {
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public NewHopeInfraredDevice(Integer valid) {
        this.valid = valid;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc()
    {
        return desc;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setLinkSql(String linkSql)
    {
        this.linkSql = linkSql;
    }

    public String getLinkSql()
    {
        return linkSql;
    }

    public String getCentralHost() {
        return centralHost;
    }

    public void setCentralHost(String centralHost) {
        this.centralHost = centralHost;
    }

    public String getCentralDbName() {
        return centralDbName;
    }

    public void setCentralDbName(String centralDbName) {
        this.centralDbName = centralDbName;
    }

    public String getCentralUser() {
        return centralUser;
    }

    public void setCentralUser(String centralUser) {
        this.centralUser = centralUser;
    }

    public String getCentralPwd() {
        return centralPwd;
    }

    public void setCentralPwd(String centralPwd) {
        this.centralPwd = centralPwd;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public Integer getHeadDiscard() {
        return headDiscard;
    }

    public void setHeadDiscard(Integer headDiscard) {
        this.headDiscard = headDiscard;
    }

    public Integer getEndDiscard() {
        return endDiscard;
    }

    public void setEndDiscard(Integer endDiscard) {
        this.endDiscard = endDiscard;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("desc", getDesc())
            .append("location", getLocation())
            .append("linkSql", getLinkSql())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
